package com.zxp.dubbo.server;

import lombok.SneakyThrows;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

import java.io.IOException;

/**
 * @author zxp
 * @date 2021-08-24 15:08
 */
public class SpringServer {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("dubbo-provider.xml");
        //applicationContext.start(); // 可以不写
        System.out.println("端口已暴露");
        System.in.read();
    }
}
